package com.cnswhy.cloud.server.app.feign;

import com.cnswhy.cloud.common.core.base.R;
import com.cnswhy.cloud.common.core.entity.constant.CnswhyServerConstant;
import com.cnswhy.cloud.common.core.entity.system.SystemUser;
import com.cnswhy.cloud.server.app.feign.fallback.HelloServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = CnswhyServerConstant.CNSWHY_SERVER_SYSTEM, contextId = "systemUserServiceClient", fallbackFactory = HelloServiceFallback.class)
public interface ISystemUserService {

    @PostMapping(value = "/systemUser/saveMerchant")
    R<SystemUser> saveMerchant(@RequestParam("userName") String userName,@RequestParam("password") String password,@RequestParam("merchantId") Long merchantId);
}